<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="jt" uri="http://www.jsoft.org/tags/jsoft"%>
<%@ taglib prefix="jh" uri="http://www.jsoft.org/tags/jsoft-html"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
	String path = request.getContextPath();
	if(path!=null&&path.equals("/")){
	   path="";
	} 
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title>回复问题</title>
		<link href="<%=basePath%>admin/styles/default.css" rel="stylesheet" type="text/css" />
		<link href="<%=basePath%>admin/styles/page.css" rel="stylesheet" type="text/css" />
		<script type=text/javascript src="<%=basePath%>admin/scripts/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript">
		function form_delete(href)
		{
			if(confirm("您确定要删除吗？执行删除后数据将无法恢复！"))
			{
   				window.location.href = href;
   			}
		}
		</script>
	</head>

	<body>
		<div class="title">
			<h2>
				问题回复
				<a href="<%=basePath%>manager/messages/list.do">返回列表</a>
			</h2>
		</div>
		<div id="container">
			<!-- table -->
			<div id="info">
				<form action="<%=basePath%>manager/messages/save.do" method="post">
					<input type="hidden" name="id" value="${requestScope.messages.msgid}" >
					<table width="100%" cellpadding="3" cellspacing="1" border="0" bgcolor="#e3e3e3">
						 
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">标题</td>
							<td>
								 ${requestScope.messages.title} 
							</td>
						</tr>
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">内容</td>
							<td>
								 ${requestScope.messages.content} 
							</td>
						</tr> 
						<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">发布时间</td>
							<td>  ${requestScope.addtime}   ${requestScope.userid}   ${requestScope.userip}
						    </td> 
						</tr>   
	 					<tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">发布人</td>
							<td>     ${requestScope.userid}   ${requestScope.userip}
						    </td> 
						</tr>   
						  <tr bgcolor="#FFFFFF">
							<td width="100" nowrap="nowrap" bgcolor="#f7fbff">发布人IP</td>
							<td>      ${requestScope.userip}
						    </td> 
						</tr>  
					</table>
			 
		 
			</table>
			<div class="title">
			<h2>
				回复列表
				 
			</h2>
		</div>
			
			<table class="table01">
				<tr>
				 
					<th>标题</th>
					<th>内容</th>
					<th>创建时间</th>
					<th>创建人</th>
					<th>状态</th>
					<th width="70">操作</th>
				</tr>
				<c:forEach items="${requestScope.messagesBK}" var="messages">
				<tr>
					<td><c:out value="${messages.msgid}"/></td>
					<td><c:out value="${messages.title}"/></td>
					<td nowrap="nowrap"><jt:date date="${messages.addtime}" format="yyyy-MM-dd"/></td> 
					<td><c:out value="${messages.userid}"/></td> 
				 
					 
				</tr>
				</c:forEach>
			</table>
					<div style="height: 10px;"></div>
					<input type="submit" value="提交" class="button" />
					<input type="reset" value="重置" class="button" />
					<div style="height: 10px;"></div>
				</form>
			</div>
		</div>
	</body>
</html>
